package com.ibm.sc.osp.sample.domain.entity;

import com.ibm.sc.osp.common.persistence.VersionEntity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "message", schema = "sample")
//数据表对应实体类
public class Message extends VersionEntity {
    private String content;
    private String sendFlag;
    private String pushType;
    
    @Basic
    @Column(name = "CONTENT", nullable = true, length = 500)
    //字段名
    public String getContent() {
        return content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    
    @Basic
    @Column(name = "SEND_FLAG", nullable = true, length = 1)
    public String getSendFlag() {
        return sendFlag;
    }
    
    public void setSendFlag(String sendFlag) {
        this.sendFlag = sendFlag;
    }
    
    @Basic
    @Column(name = "PUSH_TYPE", nullable = true, length = 1)
    public String getPushType() {
        return pushType;
    }
    
    public void setPushType(String pushType) {
        this.pushType = pushType;
    }
}
